package com.itheima.abstract_case.class_demo;

public class Test {
    public static void main(String[] args) {
        // 猫
        Animal cat = new Cat();
        cat.eat();
        cat.shout();

        // 狗
        Animal dog = new Dog();
        dog.eat();
        dog.shout();
    }
}
